<?=$ind?><div id="menu">
<?=$ind?>	<ul>
<?php
	foreach ($page_names as $p) {
		switch ($pages[$p][1]) {
			case 1:
?>
<?=$ind?>		<li<?
					if ($p==$page) echo " class=\"active\"";
				?>><span class="dash">-</span><a href="?id=<?=$p?>"><?=$pages[$p][0]?></a><span class="dash">-</span></li>
<?php
			break;
			case -1:
?>
<?=$ind?>		<li class="inactive"><?=$pages[$p][0]?></li>
<?php
			break;
		}
	}
?>
<?=$ind?>	</ul>
<?=$ind?>	<br class="clearer" />
<?=$ind?></div>

